<template>
    <div>
      <button @click="handClick">点击登录</button>
    </div>
  </template>

<script>
import { SET_TOKEN } from '@/utils/token'
export default {
  name: 'Login',
  methods: {
    handClick () {
      SET_TOKEN('123')
      this.$router.push('/')
    }
  }
}
</script>

  <style lang="scss" scoped></style>
